<script setup>
import { ref, defineOptions } from 'vue'
defineOptions({
  name: 'indexPersonage',
})
const formPersonage = ref({
  username: '',
  password: '',
  birthday: '',
  phone: '',
  sex: '',
  email: '',
  address: '',
  desc: '',
})
</script>

<template>
  <el-form :model="formPersonage" style="max-width: 600px">
    <el-form-item label="头像">
      <el-image></el-image>
    </el-form-item>
    <el-form-item label="姓名">
      <el-input v-model="formPersonage.username" />
    </el-form-item>
    <el-form-item label="密码">
      <el-input v-model="formPersonage.username" />
    </el-form-item>
    <el-form-item label="邮箱">
      <el-input v-model="formPersonage.username" />
    </el-form-item>
    <el-form-item label="性别">
      <el-select v-model="formPersonage.sex" placeholder="未知">
        <el-option label="男" value="1" />
        <el-option label="女" value="0" />
      </el-select>
    </el-form-item>
    <el-form-item label="生日">
      <el-col :span="11">
        <el-date-picker
          v-model="formPersonage.birthday"
          type="date"
          placeholder="Pick a date"
          style="width: 100%"
        />
      </el-col>
      <!-- <el-col :span="2" class="text-center">
        <span class="text-gray-500">-</span>
      </el-col>
      <el-col :span="11">
        <el-time-picker v-model="form.date2" placeholder="Pick a time" style="width: 100%" />
      </el-col> -->
    </el-form-item>
    <el-form-item label="地址">
      <el-switch v-model="formPersonage.address" />
    </el-form-item>
    <el-form-item label="简介">
      <el-input v-model="formPersonage.desc" type="textarea" />
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="onSubmit">保存</el-button>
      <el-button>取消</el-button>
    </el-form-item>
  </el-form>
  <p>a</p>
  <p>a</p>

  <p>a</p>
</template>

<style lang="scss" scoped></style>
